@(form: Form[Admin.UserForm], cities: List[City])

@helper.form(routes.Admin.updateUser(Long.valueOf(form("id").value))){
	@if(form.hasGlobalErrors){
		<p>
			@form.globalError.message
		</p>
	}
	<p>
		<input type = "username" name = "username" placeHolder = "Username" value = "@form("username").value" />
	</p>
	<p>
		<input type = "password" name = "password" placeHolder = "Password" value = "@form("password").value" />
	</p>
	<p>
		<input type = "password" name = "cpassword" placeHolder = "Confirm Password" value = "@form("cpassword").value" />
	</p>
	<p>
		<input type = "email" name = "email" placeHolder = "Email" value = "@form("email").value" />
	</p>
	<br />
	<p>
		<input type = "name" name = "name" placeHolder = "Name" value = "@form("name").value" />
	</p>
	<p>
		<input type = "surname" name = "surname" placeHolder = "Surname" value = "@form("surname").value" />
	</p>
	<p>
		<select type = "city" name = "city">
			@for(city <- cities){
				<option name = "city" value = "@city.name" @if(city.name.equals(form("city").value)){selected}>@city.name</option>
			}
		</select>
	</p>
	<p>
		<textarea type = "address" name = "address" placeHolder = "Address" value = "@form("address").value" row="8" style="resize: none"></textarea>
	</p>
	<p>
		<button type = "submit">Submit</button> 
	</p>
}